# CVFD Testing software...
# Copyright (c) 2008, Ian Caldwell (Inc-omplete.org).
# License: BSD license, see license.txt
# Purpose: Automatically grades 4300 Tests.
# Contact us: iancaldwell@inc-omplete.org.
#------------------------------------------------------------------------------------------------------------------
# print modules....
from Tkinter import *
import sys
import math
import time
import os
import urllib2
import datetime
import subprocess
# Intro Text
#root = Tk()
#root.title("CVFD 4300 Testing Software")
#root.geometry("200x100")
#app = Frame(root)
#app.grid()
#lbl = Label(app, text = "Copyright (c) 2008 Ian Caldwell. Licensed under the BSD license (see license.txt)")
#lbl.grid()
#root.mainloop()
def check_user():
# Users
	userlist = ("fonseca","caldwell","bird","nuber","massey","anthony","vick","pena","long","simpson","musick","deyoung")
# Who are you?
	user = (raw_input('Enter username here:'))
# and write the user is in the user tuplet..
		text_file = None
	try:
		text_file=open('scores.txt','a')
	except:
		print "Could not open the score file.... retry later"
	sys.exit(1)
	text_file.write("Test '%s'#\n" % time.strftime("%a, %d %b %Y %H:%M:%S"))
        if user in userlist
	        message="Name: $%s " %user
        else:
	        message="user $%s does not exist... :(" %user
            text_file.write(message+"\n")
                text_file.write("\n# END OF TEST RECORD #\n")
if __name__ == '__main__' : check_user()
def main():
# Press Enter to exit
	raw_input("\n\nhit enter key to exit.")
main()
